package com.zabra.zl.ui.allocation_manage;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zabra.zl.R;
import com.zabra.zl.data.AllocationManageBean;
import com.zabra.zl.utils.StateUtils;

import java.util.List;

public class Adp extends BaseQuickAdapter<AllocationManageBean.RespDataBean.DataBean, BaseViewHolder> {

    public Adp(int layoutResId, @Nullable List<AllocationManageBean.RespDataBean.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, AllocationManageBean.RespDataBean.DataBean item) {
        helper.setText(R.id.item_planid, item.getOrderNo())
                .setText(R.id.item_date, "申请时间：" + item.getAddTime())
                .setText(R.id.item_state, StateUtils.getState(item.getBpStatus() + ""))
                .setText(R.id.item_cash, item.getGuaranteeAmt() + "")
                .setText(R.id.item_totle, item.getTotalAmt() + "");

    }
}
